﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BuildTablesAndData;

namespace DMS.Web
{
	public partial class Database : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected void btnCreate_Click(object sender, EventArgs e)
		{
			try
			{
				Builder builder = new Builder();
				builder.Build();
				lblResult.Text = "Build succeeded";
			}
			catch(Exception ex)
			{
				lblResult.Text = "Build fail";
				lblException.Text = ex.ToString();
			}
		}
	}
}
